package com.ry.dvd.design.product.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.ry.core.base.service.BaseServiceImpl;
import com.ry.core.exception.BaseException;
import com.ry.dvd.design.product.model.Product;

/**
 * 产品逻辑层类
 */
@Service
public class ProductService extends BaseServiceImpl {

	@Override
	public Class<?> getEntity() {
		return Product.class;
	}
	@SuppressWarnings("unchecked")
	public List<Product> getProductList() throws BaseException {
		Map<String, Object> m = new HashMap<String, Object>();
		m.put("startNum", 0);
		m.put("pageSize", 10);
		return (List<Product>) super.findListByMap(m);
	}
}
